﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bdcs.Core.Entity
{
    /// <summary>
    /// System_MaxSerialInfo数据模型对象
    /// </summary>
    [Serializable]
    public partial class System_MaxSerialInfoMod
    {
        /// <summary>
        /// 初始化System_MaxSerialInfo数据模型对象
        /// </summary>
        public System_MaxSerialInfoMod()
        {
            
        }
        /// <summary>
        /// 初始化System_MaxSerialInfo数据模型对象并给所有字段赋值
        /// </summary>
        /// <param name="tblName">tblName</param>
        /// <param name="fixID">FixID</param>
        /// <param name="datePart">DatePart</param>
        /// <param name="maxIndex">MaxIndex</param>
        /// <param name="formID">FormID</param>
        public System_MaxSerialInfoMod(string tblName,string fixID,string datePart,int maxIndex,string formID)
        {
            //给tblName字段赋值
            this.TblName = tblName;
            //给FixID字段赋值
            this.FixID = fixID;
            //给DatePart字段赋值
            this.DatePart = datePart;
            //给MaxIndex字段赋值
            this.MaxIndex = maxIndex;
            //给FormID字段赋值
            this.FormID = formID;
        }
        
		//属性存储数据的变量
        private string _tblName;
        private string _fixID;
        private string _datePart;
        private int _maxIndex;
        private string _formID;
        
        /// <summary>
        /// tblName
        /// </summary>
        public string TblName
        {
            get { return this._tblName; }
            set { this._tblName = value; }
        }
        /// <summary>
        /// FixID
        /// </summary>
        public string FixID
        {
            get { return this._fixID; }
            set { this._fixID = value; }
        }
        /// <summary>
        /// DatePart
        /// </summary>
        public string DatePart
        {
            get { return this._datePart; }
            set { this._datePart = value; }
        }
        /// <summary>
        /// MaxIndex
        /// </summary>
        public int MaxIndex
        {
            get { return this._maxIndex; }
            set { this._maxIndex = value; }
        }
        /// <summary>
        /// FormID
        /// </summary>
        public string FormID
        {
            get { return this._formID; }
            set { this._formID = value; }
        }
        
        /// <summary>
        /// 对比两个System_MaxSerialInfo数据模型对象是否一致
        /// </summary>
        /// <param name="obj">要进行比对的System_MaxSerialInfo数据模型对象</param>
        /// <returns>返回是否一致，为true一致，为false不一致</returns>
        public override bool Equals(object obj)
        {
            //判断传入对象是否为null
            if (obj == null) return false;
            //将传入对象转换成System_MaxSerialInfo数据模型对象
            System_MaxSerialInfoMod system_MaxSerialInfoMod = obj as System_MaxSerialInfoMod;
            //判断是否转换成功
            if (system_MaxSerialInfoMod == null) return false;
            //进行匹配属性的值
            return
                //判断tblName是否一致
                this.TblName == system_MaxSerialInfoMod.TblName &&
                //判断FixID是否一致
                this.FixID == system_MaxSerialInfoMod.FixID &&
                //判断DatePart是否一致
                this.DatePart == system_MaxSerialInfoMod.DatePart &&
                //判断MaxIndex是否一致
                this.MaxIndex == system_MaxSerialInfoMod.MaxIndex &&
                //判断FormID是否一致
                this.FormID == system_MaxSerialInfoMod.FormID;
        }
        /// <summary>
        /// 将当前System_MaxSerialInfo数据模型对象转换成哈希码
        /// </summary>
        /// <returns>哈希值</returns>
        public override int GetHashCode()
        {
            //将System_MaxSerialInfo数据模型对象的属性进行按位异或运算处理得到哈希码并返回
            return
                //将tblName进行按位异或运算处理
                (this.TblName == null ? 2147483647 : this.TblName.GetHashCode()) ^
                //将FixID进行按位异或运算处理
                (this.FixID == null ? 2147483647 : this.FixID.GetHashCode()) ^
                //将DatePart进行按位异或运算处理
                (this.DatePart == null ? 2147483647 : this.DatePart.GetHashCode()) ^
                //将MaxIndex进行按位异或运算处理
                this.MaxIndex.GetHashCode() ^
                //将FormID进行按位异或运算处理
                (this.FormID == null ? 2147483647 : this.FormID.GetHashCode());
        }
        /// <summary>
        /// 将当前System_MaxSerialInfo数据模型对象转换成字符串副本【仅显示在SQL中不能为空的列】
        /// </summary>
        /// <returns>字符串形式副本</returns>
        public override string ToString()
        {
            //将当前System_MaxSerialInfo数据模型对象转换成字符串副本
            return
                "[" +
                //将tblName转换成字符串
                this.TblName + "," +
                //将FixID转换成字符串
                this.FixID + "," +
                //将DatePart转换成字符串
                this.DatePart + "," +
                //将MaxIndex转换成字符串
                this.MaxIndex + "," +
                //将FormID转换成字符串
                this.FormID +
                "]";
        }
    }
}
